﻿//--------------------------------------------------------------------------------------------------------------------------------------------------------
// <copyright file="SigningInAnActivatedUser.cs">
//     Copyright © 2010 Oli Francis
//     This source code is subject to the terms and conditions of the MIT license. A copy of the license can be found in the license.txt 
//     file at the root of this distribution. By using this source code in any fashion, you are agreeing to be bound by the terms of the MIT License. 
//     You must not remove this notice from the software.
// </copyright>
// <author>Oli</author>
//-------------------------------------------------------------------------------------------------------------------------------------------------------

namespace TeamBrain.Tests.Units.Security
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using NUnit.Framework;

    [TestFixture]
    public class SigningInAnActivatedUser : SecurityAction
    {
        [Test]
        public void ShouldSetAnAuthCookieForTheSession()
        {
            // act
            this.SecurityService.SignInActivatedUser(1);

            // assert);
            this.AuthenticationProvider.Verify(a => a.SetAuthCookie(1, false));
        }
    }
}
